import 'package:get/get.dart';

class SplashController extends GetxController {

  var opacity = 0.0;

  @override
  void onInit() {
    super.onInit();
    Future.delayed(const Duration(milliseconds: 200),(){
      opacity = 1.0;
      update();
    });
  }

  void rest() {
    if(opacity == 0.0){
      opacity = 1.0;
    }else{
      opacity = 0.0;
    }
    update();
  }

}
